A Tale of Two Puzzles: Towers of Hanoi and Spin-Out
نویسندگان
چکیده
Once upon a time, there were two puzzles. One was the Towers of Hanoi invented or introduced by Eduardo Lucas in 1883. The other was Spin-Out patented by William Keister in 1972. There are many stories about these puzzles. Some of these stories hint or claim that these puzzles have an intimate relationship with the Gray codes invented by Frank Gray in 1947. Here, we wish to show how these puzzles can be generalized and crossed to give puzzles for every base and for every number of pieces. The Gray relationship will become clearer when we describe the graphs associated with the puzzles and the graph labelings induced by the puzzles. These labelings will have the Gray property in the appropriate base. Counter to claims that Gray counting is needed to solve these puzzles, we describe counting algorithms which solve these puzzles using a standard binary counter. We also give recursive and iterative algorithms for these puzzles.
منابع مشابه
A Tale of Two Puzzles
Towers of Hanoi and Spin-Out are two puzzles with different physical manifestations but similar graphical properties. Towers of Hanoi is well known and Spin-Out less so, and in this paper we discuss a puzzle formed by a combination of concepts from both puzzles. Towers of Hanoi may be generalized to a puzzle in any odd dimension and Spin-Out to any 2m-dimension puzzle, and so their combination ...
متن کاملSequences for Solving Puzzles and Touring Graphs
We examine Generalized Towers of Hanoi, Generalized Spin-Out, and the Combination Puzzle, and continue to describe the puzzles and their properties. We introduce Finite State Transducers (FSTs) that compute the shortest sequence of winning moves for each of these puzzles for all dimensions, and show that the solution sequence for Spin-Out is not finite-state computable when going from configura...
متن کاملCompressed Pattern Databases
A pattern database (PDB) is a heuristic function implemented as a lookup table that stores the lengths of optimal solutions for subproblem instances. Standard PDBs have a distinct entry in the table for each subproblem instance. In this paper we investigate compressing PDBs by merging several entries into one, thereby allowing the use of PDBs that exceed available memory in their uncompressed f...
متن کاملOn Variable Dependencies and Compressed Pattern Databases
Pattern databases are among the strongest known heuristics for many classical search benchmarks such as sliding-tile puzzles, the 4-peg Towers of Hanoi puzzles, Rubik’s Cube, and TopSpin. Min-compression is a generally applicable technique for augmenting pattern database heuristics that has led to marked experimental improvements in some settings, while being ineffective in others. We provide a...
متن کاملComparing Search Algorithms Using Sorting and Hashing on Disk and in Memory
We compare sorting and hashing for implicit graph search using disk storage. We first describe efficient pipelined implementations of both algorithms, which reduce disk I/O. We then compare the two algorithms and find that hashing is faster, but that sorting requires less disk storage. We also compare disk-based with in-memory search, and surprisingly find that there is little or no time overhe...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- JIP
دوره 21 شماره
صفحات -
تاریخ انتشار 2013